package com.pojo;

public class Shopowner {
	int sno;
	String sname;
	String spwd;
	int ssex;
	String sphone;
	String sremark;
	public int getSno() {
		return sno;
	}
	public void setSno(int sno) {
		this.sno = sno;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getSpwd() {
		return spwd;
	}
	public void setSpwd(String spwd) {
		this.spwd = spwd;
	}
	public int getSsex() {
		return ssex;
	}
	public void setSsex(int ssex) {
		this.ssex = ssex;
	}
	public String getSphone() {
		return sphone;
	}
	public void setSphone(String sphone) {
		this.sphone = sphone;
	}
	public String getSremark() {
		return sremark;
	}
	public void setSremark(String sremark) {
		this.sremark = sremark;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((sname == null) ? 0 : sname.hashCode());
		result = prime * result + sno;
		result = prime * result + ((sphone == null) ? 0 : sphone.hashCode());
		result = prime * result + ((spwd == null) ? 0 : spwd.hashCode());
		result = prime * result + ((sremark == null) ? 0 : sremark.hashCode());
		result = prime * result + ssex;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Shopowner other = (Shopowner) obj;
		if (sname == null) {
			if (other.sname != null)
				return false;
		} else if (!sname.equals(other.sname))
			return false;
		if (sno != other.sno)
			return false;
		if (sphone == null) {
			if (other.sphone != null)
				return false;
		} else if (!sphone.equals(other.sphone))
			return false;
		if (spwd == null) {
			if (other.spwd != null)
				return false;
		} else if (!spwd.equals(other.spwd))
			return false;
		if (sremark == null) {
			if (other.sremark != null)
				return false;
		} else if (!sremark.equals(other.sremark))
			return false;
		if (ssex != other.ssex)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Shopowner [sno=" + sno + ", sname=" + sname + ", spwd=" + spwd
				+ ", ssex=" + ssex + ", sphone=" + sphone + ", sremark="
				+ sremark + "]";
	}
	public Shopowner(int sno, String sname, String spwd, int ssex,
			String sphone, String sremark) {
		super();
		this.sno = sno;
		this.sname = sname;
		this.spwd = spwd;
		this.ssex = ssex;
		this.sphone = sphone;
		this.sremark = sremark;
	}
	public Shopowner() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
